package PTA_JAVA.JavaBase.JavaBase20;

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        Float a=sc.nextFloat();
        Float b=sc.nextFloat();

        System.out.printf("%.6f",(a*a+b*b));
    }
}